package finalproject.shared;



import java.io.Serializable;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;



@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Docent implements Serializable {

	private static final long serialVersionUID = 1L;
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long docentNr;
	@Persistent(defaultFetchGroup = "true")
	private Persoon persoon;
	@Persistent
	private String kamer;
	@Persistent
	private String email;
	
	public Docent() {
		super();
	}

	public Docent(String kamer, String email) {
		super();
		this.kamer = kamer;
		this.email = email;
	}

	public Long getDocentNr() {
		return docentNr;
	}

	public void setDocentNr(Long docentNr) {
		this.docentNr = docentNr;
	}

	
	public Persoon getPersoon() {
		return persoon;
	}

	public void setPersoon(Persoon persoon) {
		this.persoon = persoon;
	}
	
	public String getKamer() {
		return kamer;
	}

	public void setKamer(String kamer) {
		this.kamer = kamer;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

}
